package day5;

import java.util.Scanner;

public class t3 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.print("请输入长方形的长：");
        int chang=sc.nextInt();
        System.out.print("请输入长方形的宽：");
        int kuan=sc.nextInt();
        C_calculate(chang,kuan);
    }

    public static void C_calculate(int a,int b) {
        int C=(a+b)*2;
        System.out.println("长方形的周长为："+C);
    }
}
